﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UPMS.Core.Domain
{
    public class Module : DomainBase
    {
        [Display(Name = "Module"), Required, MaxLength(64), MinLength(2)]
        public virtual string Name { get; set; }

        [Display(Name = "Application")]
        public virtual Guid ApplicationId { get; set; }
        public virtual Application Application { get; set; }
        public virtual IList<Permission> Permissions { get; set; }
    }
}
